[INFO] cloning repository https://github.com/kmadorin/solana-flashloan-template
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kmadorin/solana-flashloan-template" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkmadorin%2Fsolana-flashloan-template", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkmadorin%2Fsolana-flashloan-template'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] a11b9baa6fdf4d5dc18244ddb5b0fef687d73287
[INFO] building kmadorin/solana-flashloan-template against master#881c1ac408d93bb7adaa3a51dabab9266e82eee8 for issue-85264
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkmadorin%2Fsolana-flashloan-template" "/workspace/builds/worker-4/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/kmadorin/solana-flashloan-template on toolchain 881c1ac408d93bb7adaa3a51dabab9266e82eee8
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/kmadorin/solana-flashloan-template
[INFO] finished tweaking git repo https://github.com/kmadorin/solana-flashloan-template
[INFO] tweaked toml for git repo https://github.com/kmadorin/solana-flashloan-template written to /workspace/builds/worker-4/source/Cargo.toml
[INFO] crate git repo https://github.com/kmadorin/solana-flashloan-template already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded spl-token v3.1.0
[INFO] [stderr]   Downloaded bv v0.11.1
[INFO] [stderr]   Downloaded solana-program v1.5.11
[INFO] [stderr]   Downloaded solana-sdk-macro v1.5.11
[INFO] [stderr]   Downloaded solana-frozen-abi-macro v1.5.11
[INFO] [stderr]   Downloaded solana-logger v1.5.11
[INFO] [stderr]   Downloaded feature-probe v0.1.1
[INFO] [stderr]   Downloaded solana-frozen-abi v1.5.11
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] c1e21cf3f88bb9ecffd7402d28a22a467b77655453bd8af6ee843b99f70db5fe
[INFO] running `Command { std: "docker" "start" "-a" "c1e21cf3f88bb9ecffd7402d28a22a467b77655453bd8af6ee843b99f70db5fe", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c1e21cf3f88bb9ecffd7402d28a22a467b77655453bd8af6ee843b99f70db5fe", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c1e21cf3f88bb9ecffd7402d28a22a467b77655453bd8af6ee843b99f70db5fe", kill_on_drop: false }`
[INFO] [stdout] c1e21cf3f88bb9ecffd7402d28a22a467b77655453bd8af6ee843b99f70db5fe
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] e28108cf70c03463763e319f37f3a6507eb4e675705519936ba66c7ffe6e19a8
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "e28108cf70c03463763e319f37f3a6507eb4e675705519936ba66c7ffe6e19a8", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]    Compiling proc-macro2 v1.0.24
[INFO] [stderr]    Compiling unicode-xid v0.2.1
[INFO] [stderr]    Compiling syn v1.0.60
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling typenum v1.12.0
[INFO] [stderr]    Compiling semver-parser v0.7.0
[INFO] [stderr]    Compiling memchr v2.3.4
[INFO] [stderr]    Compiling version_check v0.9.2
[INFO] [stderr]    Compiling once_cell v1.7.0
[INFO] [stderr]    Compiling regex-syntax v0.6.22
[INFO] [stderr]    Compiling byteorder v1.3.4
[INFO] [stderr]    Compiling feature-probe v0.1.1
[INFO] [stderr]    Compiling rustversion v1.0.4
[INFO] [stderr]    Compiling autocfg v1.0.1
[INFO] [stderr]    Compiling lazy_static v1.4.0
[INFO] [stderr]    Compiling ppv-lite86 v0.2.10
[INFO] [stderr]    Compiling ahash v0.4.7
[INFO] [stderr]    Compiling bs58 v0.3.1
[INFO] [stderr]    Compiling subtle v2.4.0
[INFO] [stderr]    Compiling zeroize v1.2.0
[INFO] [stderr]    Compiling either v1.6.1
[INFO] [stderr]    Compiling hex v0.4.2
[INFO] [stderr]    Compiling arrayref v0.3.6
[INFO] [stderr]    Compiling memmap2 v0.1.0
[INFO] [stderr]    Compiling getrandom v0.1.16
[INFO] [stderr]    Compiling log v0.4.14
[INFO] [stderr]    Compiling itertools v0.9.0
[INFO] [stderr]    Compiling bv v0.11.1
[INFO] [stderr]    Compiling semver v0.9.0
[INFO] [stderr]    Compiling hashbrown v0.9.1
[INFO] [stderr]    Compiling rand_core v0.5.1
[INFO] [stderr]    Compiling thread_local v1.1.3
[INFO] [stderr]    Compiling generic-array v0.14.4
[INFO] [stderr]    Compiling num-traits v0.2.14
[INFO] [stderr]    Compiling rustc_version v0.2.3
[INFO] [stderr]    Compiling rand_chacha v0.2.2
[INFO] [stderr]    Compiling quote v1.0.9
[INFO] [stderr]    Compiling aho-corasick v0.7.15
[INFO] [stderr]    Compiling rand v0.7.3
[INFO] [stderr]    Compiling solana-frozen-abi-macro v1.5.11
[INFO] [stderr]    Compiling solana-frozen-abi v1.5.11
[INFO] [stderr]    Compiling solana-program v1.5.11
[INFO] [stderr]    Compiling generic-array v0.12.3
[INFO] [stderr]    Compiling digest v0.8.1
[INFO] [stderr]    Compiling curve25519-dalek v2.1.2
[INFO] [stderr]    Compiling regex v1.4.3
[INFO] [stderr]    Compiling env_logger v0.8.3
[INFO] [stderr]    Compiling solana-logger v1.5.11
[INFO] [stderr]    Compiling borsh-schema-derive-internal v0.8.1
[INFO] [stderr]    Compiling borsh-derive-internal v0.8.1
[INFO] [stderr]    Compiling serde_derive v1.0.123
[INFO] [stderr]    Compiling thiserror-impl v1.0.24
[INFO] [stderr]    Compiling derivative v2.2.0
[INFO] [stderr]    Compiling solana-sdk-macro v1.5.11
[INFO] [stderr]    Compiling num-derive v0.3.3
[INFO] [stderr]    Compiling thiserror v1.0.24
[INFO] [stderr]    Compiling serde v1.0.123
[INFO] [stderr]    Compiling toml v0.5.8
[INFO] [stderr]    Compiling serde_bytes v0.11.5
[INFO] [stderr]    Compiling bincode v1.3.2
[INFO] [stderr]    Compiling digest v0.9.0
[INFO] [stderr]    Compiling block-buffer v0.9.0
[INFO] [stderr]    Compiling sha2 v0.9.3
[INFO] [stderr]    Compiling proc-macro-crate v0.1.5
[INFO] [stderr]    Compiling borsh-derive v0.8.1
[INFO] [stderr]    Compiling num_enum_derive v0.5.1
[INFO] [stderr]    Compiling borsh v0.8.1
[INFO] [stderr]    Compiling num_enum v0.5.1
[INFO] [stderr]    Compiling spl-token v3.1.0
[INFO] [stderr]    Compiling solana-flashloan-template v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: expected one of `,`, `=`, or `}`, found doc comment `/// An instruction which will be called by the Lending program after receiving a flashloan by MyFlashloanProgram `
[INFO] [stdout]   --> src/instruction.rs:19:2
[INFO] [stdout]    |
[INFO] [stdout] 16 |     InitMyFlashloanProgram {}
[INFO] [stdout]    |                              -
[INFO] [stdout]    |                              |
[INFO] [stdout]    |                              expected one of `,`, `=`, or `}`
[INFO] [stdout]    |                              help: missing `,`
[INFO] [stdout] ...
[INFO] [stdout] 19 |     /// An instruction which will be called by the Lending program after receiving a flashloan by MyFlashloanProgram 
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unexpected token
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected one of `,`, `=`, or `}`, found doc comment `/// Flash borrows tokens from a Lending Program borrowing reserve by invoking its flashloan instruction.`
[INFO] [stdout]   --> src/instruction.rs:27:2
[INFO] [stdout]    |
[INFO] [stdout] 25 |     }
[INFO] [stdout]    |      -
[INFO] [stdout]    |      |
[INFO] [stdout]    |      expected one of `,`, `=`, or `}`
[INFO] [stdout]    |      help: missing `,`
[INFO] [stdout] 26 | 
[INFO] [stdout] 27 |     /// Flash borrows tokens from a Lending Program borrowing reserve by invoking its flashloan instruction.
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unexpected token
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `rest` in this scope
[INFO] [stdout]   --> src/instruction.rs:50:44
[INFO] [stdout]    |
[INFO] [stdout] 50 |                 let (amount, _rest) = Self::unpack_u64(rest)?;
[INFO] [stdout]    |                                                        ^^^^ help: a local variable with a similar name exists: `_rest`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `rest` in this scope
[INFO] [stdout]   --> src/instruction.rs:57:70
[INFO] [stdout]    |
[INFO] [stdout] 57 |                 let (amount, execute_operation_ix_data_slice) = Self::unpack_u64(rest)?;
[INFO] [stdout]    |                                                                                  ^^^^ help: a local variable with a similar name exists: `_rest`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `size_of` in this scope
[INFO] [stdout]   --> src/instruction.rs:99:42
[INFO] [stdout]    |
[INFO] [stdout] 99 |         let mut buf = Vec::with_capacity(size_of::<Self>());
[INFO] [stdout]    |                                          ^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 1  | use core::intrinsics::size_of;
[INFO] [stdout]    |
[INFO] [stdout] 1  | use core::mem::size_of;
[INFO] [stdout]    |
[INFO] [stdout] 1  | use std::intrinsics::size_of;
[INFO] [stdout]    |
[INFO] [stdout] 1  | use std::mem::size_of;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `amount` in this scope
[INFO] [stdout]   --> src/processor.rs:26:59
[INFO] [stdout]    |
[INFO] [stdout] 26 |                 Self::process_execute_operation(accounts, amount, program_id)
[INFO] [stdout]    |                                                           ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `amount` in this scope
[INFO] [stdout]   --> src/processor.rs:30:59
[INFO] [stdout]    |
[INFO] [stdout] 30 |                 Self::process_my_flashloan_call(accounts, amount, execute_operation_ix_data, program_id)
[INFO] [stdout]    |                                                           ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `execute_operation_ix_data` in this scope
[INFO] [stdout]   --> src/processor.rs:30:67
[INFO] [stdout]    |
[INFO] [stdout] 30 |                 Self::process_my_flashloan_call(accounts, amount, execute_operation_ix_data, program_id)
[INFO] [stdout]    |                                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/instruction.rs:50:9
[INFO] [stdout]    |
[INFO] [stdout] 50 |                 let (amount, _rest) = Self::unpack_u64(rest)?;
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^   ----------------------- this expression has type `u64`
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     expected `u64`, found tuple
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected type `u64`
[INFO] [stdout]              found tuple `(_, _)`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/instruction.rs:57:9
[INFO] [stdout]    |
[INFO] [stdout] 57 |                 let (amount, execute_operation_ix_data_slice) = Self::unpack_u64(rest)?;
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   ----------------------- this expression has type `u64`
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     expected `u64`, found tuple
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected type `u64`
[INFO] [stdout]              found tuple `(_, _)`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `try_into` found for reference `&[u8]` in the current scope
[INFO] [stdout]   --> src/instruction.rs:74:41
[INFO] [stdout]    |
[INFO] [stdout] 74 |                 .and_then(|slice| slice.try_into().ok())
[INFO] [stdout]    |                                         ^^^^^^^^ method not found in `&[u8]`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is in scope
[INFO] [stdout]    = note: the following trait is implemented but not in scope; perhaps add a `use` for it:
[INFO] [stdout]            `use std::convert::TryInto;`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/instruction.rs:77:16
[INFO] [stdout]    |
[INFO] [stdout] 77 |             Ok((amount, rest))
[INFO] [stdout]    |                ^^^^^^^^^^^^^^ expected `u64`, found tuple
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected type `u64`
[INFO] [stdout]              found tuple `(u64, &[u8])`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `try_into` found for reference `&[u8]` in the current scope
[INFO] [stdout]   --> src/instruction.rs:88:41
[INFO] [stdout]    |
[INFO] [stdout] 88 |                 .and_then(|slice| slice.try_into().ok())
[INFO] [stdout]    |                                         ^^^^^^^^ method not found in `&[u8]`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is in scope
[INFO] [stdout]    = note: the following trait is implemented but not in scope; perhaps add a `use` for it:
[INFO] [stdout]            `use std::convert::TryInto;`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/instruction.rs:116:16
[INFO] [stdout]     |
[INFO] [stdout] 116 |                 buf.append(&execute_operation_ix_data);
[INFO] [stdout]     |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected mutable reference `&mut Vec<u8>`
[INFO] [stdout]                        found reference `&Vec<u8>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 14 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `solana-flashloan-template`
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `Command { std: "docker" "inspect" "e28108cf70c03463763e319f37f3a6507eb4e675705519936ba66c7ffe6e19a8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e28108cf70c03463763e319f37f3a6507eb4e675705519936ba66c7ffe6e19a8", kill_on_drop: false }`
[INFO] [stdout] e28108cf70c03463763e319f37f3a6507eb4e675705519936ba66c7ffe6e19a8
